package com.jk.web.controller;


import com.jk.common.model.OrderBean;
import com.jk.web.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("messager")
public class MssagerControllrt {

    @Autowired
    private OrderService orderService;


    //修改订单状态
    @RequestMapping("saveOrder")
    public  String   saveOrder(String  orderNumber){
        //修改状态
        orderService.saveOrder(orderNumber);
        //查询订单得数据
        OrderBean orderBean = orderService.orderNumber(orderNumber);
        // orderBean.setOrderNumber("123456789");
        return  "order/long";  //平台主页面
    }

}
